Skip to content

KC-1354: Show team names in nsf-get team_permissions JSON#2214

Open
sshrushanth-ks wants to merge 2 commits into
KC-1354from
KC-1354-int
Open

KC-1354: Show team names in nsf-get team_permissions JSON#2214
sshrushanth-ks wants to merge 2 commits into
KC-1354from
KC-1354-int

Conversation

@sshrushanth-ks

Copy link
Copy Markdown
Contributor

Summary

nsf-get <folder_uid> --format json returned the team UID in team_permissions[].accessor instead of the team name. User permissions already showed emails correctly. Team accessors were never resolved to display names in get_folder_access_v3, so the UI fell back to the UID. This fix resolves AT_TEAM accessor UIDs to human-readable team names before building the JSON/text output.

Changes

  • folder_api.py — added _resolve_uid_to_team_name; get_folder_access_v3 now populates username for AT_TEAM accessors from team_cache / enterprise / share_objects / available_team_cache
  • test_nested_share_folder.py — added tests for team name resolution and for nsf-get JSON using the team name in team_permissions

@sshrushanth-ks sshrushanth-ks self-assigned this Jul 15, 2026
@sshrushanth-ks
sshrushanth-ks marked this pull request as ready for review July 15, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants